<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>自动排课系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<link rel="stylesheet" type="text/css"
			href="<%=path%>/js/ext/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css" />
		<script type="text/javascript"
			src="<%=path%>/js/ext/adapter/ext/ext-base.js">
		</script>
		<script type="text/javascript" src="<%=path%>/js/ext/ext-all.js">
		</script>
		<script type="text/javascript"
			src="<%=path%>/js/ext/build/locale/ext-lang-zh_CN.js">
		</script>
		<!--
		<script type="text/javascript"
			src="<%=path%>/js/schedule/forbidRightMenu.js">
		</script>
		 -->
		
		<script type="text/javascript">
		
		Ext.onReady(function(){  
				try{}catch(v){
					};
							var btn1=new Ext.Button({
					text:"教室管理",
					listeners:{//监听
				        "click":function(node,e){
				      		window.parent.frames['mainFrame'].location.reload('queryClassroom.jsp');
				             }
	             	}}
					);
				var btn2=new Ext.Button({
					text:"教师管理",
					listeners:{//监听
				        "click":function(node,e){
				      		window.parent.frames['mainFrame'].location.reload('queryTeacher.jsp');
				             }
	             	}}
					);
				var btn3=new Ext.Button({
					text:"课程管理",
					listeners:{//监听
				        "click":function(node,e){
				      		window.parent.frames['mainFrame'].location.reload('queryCourse.jsp');
				             }
	             	}}
					);
				var btn4=new Ext.Button({
					text:"教学楼管理",
					listeners:{//监听
				        "click":function(node,e){
				      		window.parent.frames['mainFrame'].location.reload('queryTeachingbuilding.jsp');
				             }
	             	}}
					);
				var btn5=new Ext.Button({
					text:"院系管理",
					listeners:{//监听
				        "click":function(node,e){
				      		window.parent.frames['mainFrame'].location.reload('querySystem.jsp');
				             }
	             	}}
					);
				var btn6=new Ext.Button({
					text:"班级管理",
					listeners:{//监听
				        "click":function(node,e){
				      		window.parent.frames['mainFrame'].location.reload('queryClass.jsp');
				             }
	             	}}
					);
				var btn7=new Ext.Button({
					text:"自动排课",
					listeners:{//监听
				        "click":function(node,e){
							window.parent.frames['mainFrame'].location.reload('autopk.jsp');
				             }
	             	}}
					);
				var btn8=new Ext.Button({
					text:"数据备份",
					listeners:{//监听
				        "click":function(node,e){
				      		window.parent.frames['mainFrame'].location.reload('MysqlBak.jsp');
				             }
	             	}}
					);
				var btn9=new Ext.Button({
					text:"退出系统",
					listeners:{//监听
				        "click":	function () {
							var r = Ext.MessageBox.confirm("系统提示","确认要退出系统？",function(button) {
								if (button == "yes") {
								         window.parent.location = "/schedule/loginInfoOut";
											} 
										 });
							}
	             	}}
					);
				var toolbar=new Ext.Toolbar({
					width:1200, 
			        height:28, 
					renderTo:"tool", 
					items:[btn1,btn2,btn3,btn4,btn5,btn6,btn7,btn8,btn9]
					}); 
				}); 
	</script>
	</head>